﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Logout : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["UserID"] = null; //Xóa session
        /* Xóa Cookie */
        HttpCookie HOUInfoCookies = new HttpCookie("HOU_eLearning_userInfor");
        HOUInfoCookies.Expires = DateTime.Now.AddDays(-1);
        Response.Cookies.Add(HOUInfoCookies);
        Response.Redirect(ResolveUrl("~/")); //Về trang chủ
        Response.End();
    }
}